package Person;

import java.io.File;
import java.io.IOException;

public class JavaIODemo {
    public static void main(String[] args) throws IOException {
     File file = new File("d:"+File.separator+"exe.txt");
     if(file.exists()){
        file.delete();
    }else{
        System.out.println(file.createNewFile());
    }
    }
}
